﻿@model mvcForum.Web.ViewModels.ForumViewModel
@using mvcForum.Web.Helpers
<!-- Views/Forum/ForumPagingPartial.cshtml -->
<div class="pagination">@if (ForumHelper.Authenticated()) {
							if (Model.SubForums != null && Model.SubForums.Count > 0) {
<!--<a accesskey="m" href="#todo">Mark forums read</a><text> &bull;</text>-->
							}
<!--<a accesskey="t" href="#todo">Mark topics read</a><text> &bull;</text>-->
						}
	@ForumHelper.GetHtmlString("Paging.Forum", new { TopicCount = Model.TopicCount, PageIndex = Model.Page, PageCount = Model.Pages })
@if (Model.Pages > 1) {
	<text>&bull; </text><span>@for (int index = 1; index <= Model.Pages; index++) {
							   if (Model.Page > 1) {
<span class="page-sep">, </span>
							   }
							   if (Model.Page == index) {
	 <strong>@index</strong>
							   }
							   else { 
	<a href="?page=@index">@index</a>
							   }
						   }</span>
}
</div>
